package com.leyou.page.hander;

import com.leyou.page.service.PageService;
import com.leyou.page.vo.BrandVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import top.javatool.canal.client.annotation.CanalTable;
import top.javatool.canal.client.handler.EntryHandler;

@Component
@CanalTable(value = "tb_brand")
public class BrandHandler implements EntryHandler<BrandVO> {

    @Autowired
    private PageService pageService;
    @Override   //todo
    public void insert(BrandVO brandVO) {


    }

    @Override//todo
    public void update(BrandVO before, BrandVO after) {

    }

    @Override//todo
    public void delete(BrandVO brandVO) {

        pageService.deleteBrand(brandVO.getId());

    }
}
